package com.atguigu;

public class MyRectangle extends GeometriObject{
    private double height;
    private double width;
    public MyRectangle(double width,double height,double weight,String color){
        super(color,weight);
        this.height=height;
        this.width=width;
    }

    public double getHeight() {
        return height;
    }

    public double getWidth() {
        return width;
    }

    public void setHeight(double height) {
        this.height = height;
    }

    public void setWidth(double width) {
        this.width = width;
    }
    public double findArea(){
        return width*height;
    }
}
